#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    /////////////////////////////////////
    // Change these to match your needs
    w.setImageFormat("ppm");
    w.setKeyLayout("fi");
    w.setServerName("localhost");
    w.setResolution("800x600");
    /////////////////////////////////////

    if (w.startRecording()) {
        return a.exec();
    } else {
        return -1;
    }
}
